<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" >
    <h:head>
        <title>TODO supply a title</title>
    </h:head>
    <link href="../CSS/Admincss.css" rel="stylesheet" type="text/css" />
    <h:body>
            <h:form>
                <div class="formlogin">
                    <div class="login">
                        <table>
                            <tr>
                                <td><h:outputText value="UserName: "/></td>
                                <td><p:inputText id="userName" value="#{loginBean.userEntities.userName}" required="true" requiredMessage="*"/><br/></td>
                                <td><p:message for="userName"/></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><h:outputText value="Password: "/></td>
                                <td><p:password id="feedback"  value="#{loginBean.userEntities.password}"  required="true" requiredMessage="*" feedback="true"></p:password><br/></td>
                                <td><p:message for="feedback"/></td>
                            </tr>
                            <tr>
                                <td colspan="2"></td>
                            </tr>
                            <tr>
                                <td colspan="2" align ="center"><h:commandButton value="Đăng nhập" action="#{loginBean.checkLogin()}"></h:commandButton></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </h:form>
    </h:body>
</html>
